#set(notifications_engine_SRCS
#    notificationsengine.cpp
#    notificationservice.cpp
#    notificationaction.cpp
#)
#
#qt4_add_dbus_adaptor( notifications_engine_SRCS org.kde.VisualNotifications.xml notificationsengine.h  NotificationsEngine )
#
#kde4_add_plugin(plasma_engine_notifications ${notifications_engine_SRCS})
#
#target_link_libraries(plasma_engine_notifications ${KDE4_PLASMA_LIBS} ${KDE4_KDECORE_LIBS})
#
#install(TARGETS plasma_engine_notifications DESTINATION ${PLUGIN_INSTALL_DIR})
#install(FILES plasma-dataengine-notifications.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
#install(FILES notifications.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services)

# A name for the project
project(plasma-dbus-engine)

# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
find_package(Plasma REQUIRED)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
# We add our source code here
set(dbus_engine_SRCS dbusengine.cpp scanthread.cpp)

# Now make sure all files get to the right place
kde4_add_plugin(plasma_engine_dbus ${dbus_engine_SRCS})
target_link_libraries(plasma_engine_dbus
                      ${KDE4_KDECORE_LIBS}
                      ${PLASMA_LIBS}
                      ${QT_QTXML_LIBRARY})
 
install(TARGETS plasma_engine_dbus
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-engine-dbus.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})

